package consulTest.exception;

import lombok.Data;

@Data
public class Exception extends RuntimeException {

    private static final long   serialVersionUID = 3656064381306822414L;
    private              String errorCode;
    private              String errorDesc;

    public Exception() {
    }

    public Exception(String errorCode, String errorMsg) {
        super(errorMsg);
        this.errorCode = errorCode;
        this.errorDesc = errorMsg;
    }

    public Exception(String errorCode, String errorMsg, String errorDesc) {
        super(errorMsg);
        this.errorCode = errorCode;
        this.errorDesc = errorDesc;
    }

    public Exception(String message) {
        super(message);
    }

    public Exception(String message, Throwable cause) {
        super(message, cause);
    }

    public Exception(Throwable cause) {
        super(cause);
    }
}
